package io.sage.modules.query.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.sage.modules.query.enums.BWeatherEnum;

import java.util.Date;
import java.io.Serializable;

/**
 * (BWeather)实体类
 *
 * @author zxh
 * @since 2019-08-14 17:32:29
 */
public class BWeather implements Serializable {
    private static final long serialVersionUID = -69054302912845703L;
    //id主键
    private Integer id;
    //时间
    @JsonFormat(pattern = "yyyy-MM-dd",timezone="GMT+8")
    private Date weatherDate;
    //最高温度
    private Double temperatureMax;
    //最低温度
    private Double temperatureMin;
    //平均温度
    private Double temperatureAvg;
    //天气概况
    private String skycons;
    //备注
    private String remark;

    private String skyconsName;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Date getWeatherDate() {
        return weatherDate;
    }

    public void setWeatherDate(Date weatherDate) {
        this.weatherDate = weatherDate;
    }

    public Double getTemperatureMax() {
        return temperatureMax;
    }

    public void setTemperatureMax(Double temperatureMax) {
        this.temperatureMax = temperatureMax;
    }

    public Double getTemperatureMin() {
        return temperatureMin;
    }

    public void setTemperatureMin(Double temperatureMin) {
        this.temperatureMin = temperatureMin;
    }

    public Double getTemperatureAvg() {
        return temperatureAvg;
    }

    public void setTemperatureAvg(Double temperatureAvg) {
        this.temperatureAvg = temperatureAvg;
    }

    public String getSkycons() {
        return skycons;
    }

    public void setSkycons(String skycons) {
        this.skycons = skycons;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getSkyconsName() {
        return skyconsName;
    }

    public void setSkyconsName(String skyconsName) {
        this.skyconsName = skyconsName;
    }

  /*  public String getSkyconsName() {
        return BWeatherEnum.getMessage(this.skycons);
    }

    public void setSkyconsName(String skyconsName) {
        this.skyconsName = skyconsName;
    }*/
}